import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1
import QtQuick.Layouts 1.1
import org.qtproject.znews_qt 1.0


Rectangle {
    id: container
    width: parent.width
    height: parent.height
    color: "steelblue"

    property string imageSource: "qrc:/image/resouces/images/drawable-hdpi/replay-"
                                 + ApplicationInfo.dpi
                                 + "/ic_action_refresh.png";


    Column {
        id: id_waiting
        spacing: 20
        y: 20
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter
        visible: true

        Image {
            id: image

            source: container.imageSource
            ParallelAnimation {
                running: true
                NumberAnimation { target: image; property: "opacity"; from: 0.0; to: 1.0; duration: 200 }
                NumberAnimation { target: image; property: "rotation"; from: 0; to: 360; loops: Animation.Infinite; duration: 1200 }
            }

            scale: 2
        }
        Text {
            width: parent.width
            text: qsTr("Đang tải dữ liệu...");
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
        }
    }

}
